package com.sxx.commons.exception;

/**
 * @Auther: sunxx
 * @Date: 2024/9/10 - 09 - 10 - 15:44
 * @Description: com.sxx.mall.ware
 * @version: 1.0
 */
public class NoStockException extends RuntimeException {

    private Long skuId;

    public NoStockException(Long skuId){
        super("当前商品["+skuId+"]没有库存了");
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }
}
